﻿<Window x:Class="dotNails.UI.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dotNails="clr-namespace:dotNails.UI"
    WindowStyle="None"
    ResizeMode="NoResize"
    Title="dotNails Manager" Width="550" Height="380">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    
    <Border Name="WindowBorder" BorderBrush="{DynamicResource Text1Brush}" BorderThickness="1">
        <Grid Name="Root" Background="{DynamicResource MainWindowBackgroundBrush}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Rectangle Name="WindowTitleBar" Margin="1,1,1,0" Fill="{DynamicResource WindowTitleGrad}" />
            <TextBlock Margin="14,6,38,4" VerticalAlignment="Center" IsHitTestVisible="false" Foreground="{DynamicResource WhiteBrush}" FontFamily="{DynamicResource CaptionFontFamily}" FontSize="{DynamicResource CaptionFontSize}" FontWeight="{DynamicResource CaptionFontWeight}" Text="dotNails Manager" />
			<StackPanel VerticalAlignment="Top" HorizontalAlignment="Right" Orientation="Horizontal" Margin="4,6,14,4">
				<Button CommandParameter="{Binding Name}" Click="ConventionConfig" Height="16" Margin="2 1 24 2">
					<StackPanel Style="{StaticResource DbmlActionButtonPanel}">
						<TextBlock Text="Convention Config" Style="{StaticResource DbmlAction}" FontSize="12" />
					</StackPanel>
				</Button>
				<Button Name="WindowCloseButton" MinWidth="0" MinHeight="0" Width="16" Height="16" IsTabStop="false" Background="#EECC0000">
					<Image Stretch="Fill" Width="8" Height="8" Source="{DynamicResource CloseButton}" />
				</Button>
			</StackPanel>
            
            <!-- Content -->
			<Viewbox x:Name="PageFrame" Grid.Row="1" Margin="1 0 1 1" Stretch="None" OpacityMask="#FFFFFFFF" >
            </Viewbox>
            
		</Grid>
    </Border>
    
</Window>